/*6SmNKPKngMfZDPxXJUW6CHaphE+kE5lEbGkQ7kfpJ4NzyZmHdOXCLjIHrbfbpAl1*/
/**************************************
 * 折旧方法处理工具
 **************************************/
//折旧方法是否停用检查
export function checkDepmethod(depmethodChecked, allDepmethods) {
    let depmethodReturn = depmethodChecked;
    let flag = true; //默认展示
    allDepmethods.map((depmethod)=>{
        if(depmethod.pk_depmethod === depmethodChecked.value) {
            flag = depmethod.enablestate == 2;
        }
    });
    if(!flag) {
        depmethodReturn = {display: null, value: null, scale: "-1"};
    }

    return depmethodReturn;
}

/*6SmNKPKngMfZDPxXJUW6CHaphE+kE5lEbGkQ7kfpJ4NzyZmHdOXCLjIHrbfbpAl1*/